<?php	require_once ($_SERVER['DOCUMENT_ROOT']. "/_config/config.php");		require_once(MODEL_DIR.'/album_model.php');	require_once(HELPER_DIR.'/helper.php');		$id = $_GET['id'];		if($id >= 0)	{		$albumValue = GetAlbumById($id);		$photoArr = GetPhotoByAlbumId($id);		require_once('album_view.phtml');	}	else	{		//List all news		$keyword = '';		if( !isset($_SESSION['numAlbum']))		{			$numAlbum = GetNumAlbumSearch($keyword);			$_SESSION['numAlbum'] = $numAlbum;		}		else			$numAlbum = $_SESSION['numAlbum'];				$numPage = ceil(floatval($numAlbum)/PAGING_ALBUM_PER_PAGE);				$albumArr = GetAlbumSearch(0, PAGING_ALBUM_PER_PAGE,$keyword);				require_once('album_list_view.phtml');	}?>